package com.weipu.common.facade.model.config;

import java.io.Serializable;

import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

import android.text.TextUtils;

/**
     * 鉴权信息配置
 * @author Administrator
 */
@SuppressWarnings("serial")
@Root
public class AuthenticateCfg implements Serializable
{
    public String getAccount()
    {
        return account;
    }
    
    public void setAccount(String account)
    {
        this.account = account;
    }
    
    public String getPassword()
    {
        return password;
    }
    
    public void setPassword(String password)
    {
        this.password = password;
    }
    
    //开发接口鉴权账号
    @Element
    private String account;
    
    // 开发接口鉴权密码
    @Element
    private String password;
    
    @Override
    public int hashCode()
    {
        return toString().hashCode();
    }
    
    @Override
    public String toString()
    {
        StringBuffer sb = new StringBuffer();
        
        sb.append("account: ").append(account).append('\n');
        sb.append("password: ").append((TextUtils.isEmpty(password) ? "null" : "*****"));
        return sb.toString();
    }
    
}
